<include file="Public/header" title="属性列表" />
<include file="Public/sidebar" />



<!-- 内容开始 -->
<div class="col-sm-9 col-xm-9 col-md-10  content">
 	<div class="row">
 		<div class="col-md-3"></div>
 		<div class="col-md-6">
			<table class="table">
				<tr>
					<th>ID</th>
					<th>属性名称</th>
					<th>颜色</th>
					<th>操作</th>
				</tr>
				
				<foreach name="attr" item="v">
				<tr>
					<td>{$v.id}</td>
					<td>{$v.name}</td>
					<td><div style="width:20px;height:20px;background:{$v.color}"></div></td>
					<td>
						<a href="{:U('/__CONTROLLER__/updateAttr',array("name"=>$v['name'],"color"=>$v['color'],"id"=>$v['id'],))}">修改</a>
						<a href="{:U('/__CONTROLLER__/delAttrHandle',array("id"=>$v['id']))}">删除</a>
					</td>
				</tr>
				</foreach>
				
 			</table>
 		</div>
 		<div class="col-md-3"></div>
 	</div>
</div>
<!-- 内容结束 -->


<include file="Public/footer"  />
